package com.andy.main.aptrouter;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;

import com.andy.main.apt_core.ANRouter;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ANRouter.init(getApplication());
    }

    public void innerJump(View view) {
        ANRouter.getInstance().build("/main/test").navigation();
    }

    public void module1Jump(View view) {
        ANRouter.getInstance().build("/module1/test").navigation();
    }

    public void module2Jump(View view) {
        ANRouter.getInstance().build("/module2/test").navigation();
    }
}
